﻿using System;

namespace Glue.Converters
{
    internal class SByteStringConverter : GlueDefaultConverter<sbyte, String>
    {
        internal override string InternalMapTowardsRight(sbyte from)
        {
            return from.ToString();
        }

        internal override sbyte InternalMapTowardsLeft(string from)
        {
            return Convert.ToSByte(from);
        }
    }
}
